﻿mainModule.factory("dictionarySvc", ["$http", "BaseApiSvc", "settings", function ($http, BaseApiSvc, settings) {
    "use strict";
    var url = settings.cmsBaseUrl + "api/admin/dictionaries/";
    var ChildSvc = function () {
        BaseApiSvc.call(this, url);
    };
    ChildSvc.prototype = Object.create(BaseApiSvc.prototype);
    ChildSvc.prototype.resetCache = function () {
        return $http.delete(this.url + "cache");
    };
    return new ChildSvc();
}]);